package com.woniu.shiro.util;

import java.util.LinkedHashMap;

public class FilterChainDefinitionMapBuilder {
	
	public LinkedHashMap<String, String> buildChainDefinitionMap(){
		
		LinkedHashMap<String, String>  maps = 
				new LinkedHashMap<String, String>();
		maps.put("/login.jsp", "anon")	;
		maps.put("/user/login", "anon")	;
		//maps.put("/user/logout", "logout")	;
		//maps.put("/jsp/add.jsp", "roles[admin]")	;
		//maps.put("/jsp/user.jsp", "roles[user]")	;
		
		maps.put("/**", "authc")	;	
		
		return maps ;
	}
	
}
